if (match("${cardName}", "*GeForce2*Integrated*") or match("${cardName}", "*GeForce?2*Integrated*") or match("${cardName}", "*GeForce4*Integrated*") or match("${cardName}", "*GeForce?4*Integrated*"))
boolProp causticsEnabled false
boolProp enumerateMultisampleLevels false
setb forceLowSettings true
setb forceLowResolution true
endif
# disable shaders by default for NV3x generation, only enable for high end cards
if ($maxVertexProgramVersionHWMajor = 2)
boolProp useShaders false
if (match("${cardName}", "GeForceFX*") or match("${cardName}", "*GeForce?FX*"))
if (match("${cardName}", "*57?0*") or match("${cardName}", "*58?0*") or match("${cardName}", "*59?0*"))
boolProp useShaders true
log $logGroup $logLevelInfo "Enabling shaders for high-end NV3x"
endif
if (match("${cardName}", "*NV35*") or match("${cardName}", "*NV36*") or match("${cardName}", "*NV38*") or match("${cardName}", "*NV39*"))
boolProp useShaders true
log $logGroup $logLevelInfo "Enabling shaders for high-end NV3x"
endif
endif
if (match("${cardName}", "QuadroFX*") or match("${cardName}", "*Quadro?FX*"))
if (match("${cardName}", "*3000*") or match("${cardName}", "*1100*"))
boolProp useShaders true
log $logGroup $logLevelInfo "Enabling shaders for high-end NV3x Quadro"
endif
endif
# caps read vs 3.0, but dx9b is returning vs 2.0, once 9c is used this fix can be removed
if (match("${cardName}", "*GeForce*"))
if (match("${cardName}", "*68?0*"))
boolProp useShaders true
log $logGroup $logLevelInfo "Enabling shaders for high-end NV40 Parts on Dx9b"
endif
endif
endif
if ($driverBuild <= 5216)
# turn off antialiasing to avoid BSODs on older drivers
boolProp enumerateMultisampleLevels false
log $logGroup $logLevelInfo "Driver is too old. Disabling AA on this device."
endif
if (($driverBuild < 5212) and ($maxPixelProgramVersionMajor < 2))
# turn off cinematics on older drivers with DX8 cards to avoid failed copies
setb supportsSpecialEventCamera false
log $logGroup $logLevelInfo "Driver is too old. Disabling SpecialEventCameras on this device."